<blockquote class="layui-elem-quote">{$title}</blockquote>
<form class="layui-form layui-form-pane" action="" style="width: 50%;">
    <div class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label class="layui-form-label">首页图纸风格</label>
            <div class="layui-input-block">
                <select name="index_style" xm-select="select7_1" xm-select-search="" xm-select-skin="primary">
                    <option value="">请选择</option>
                    {notempty name="DrawingStyle"}
                    {volist name="DrawingStyle" id="vo"}
                    <option value="{$vo.config_id}" {notempty name="dataInfo.index_style"}{if condition="in_array($vo['config_id'],$dataInfo['index_style'])"}selected="selected"{/if}{/notempty}>{$vo.config_name}</option>
                    {/volist}
                    {/notempty}
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-form-item">
            <button class="layui-btn" type="button" lay-submit lay-filter="formDemo">立即提交</button>
        </div>
    </div>
</form>
<script>
    layui.use(['form','upload','formSelects'], function(){
        var form = layui.form,upload = layui.upload;
        var formSelects = layui.formSelects;
        formSelects.render();
        form.render();
        //监听提交
        form.on('submit(formDemo)', function(data){
            post_sub("{:url('Systems/detailSetting')}",data.field);
            return false;
        });
    });
</script>